#include<stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include<unistd.h>
#include<string.h>
int main(){
    int fd=open("file.txt",O_RDONLY);
    char buff[1024];
    while(1){
        read(fd,buff,5);
        buff[5]='\0';
        printf("%s\n",buff);
        sleep(1);
    }

    return 0;
}
